home *** CD-ROM | disk | FTP | other *** search
- ; ROUTINE TO DELAY SPECIFIED NUMBER OF MILLISECONDS
- delay proc far
- ;
- push cx ; save registers
- ;
- delay1:
- push cx ; save counter
- mov cx,260 ; timing constant
- delay2:
- loop delay2 ; small loop
- pop cx ; restore counter
- loop delay1 ; loop to count milliseconds
- ;
- pop cx ; restore registers
- ret
- ;
- delay endp
-